﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Import Namespace="MVCBug.Models"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%= ViewData["title"]  %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%= ViewData["title"]  %></h2>

    <table>
        <tr>
            <td>
                Action
            </td>
            <td>
                Title
            </td>
            <td>
                Created Date
            </td>
        </tr>

        <%
            foreach (Tasks t in (IEnumerable<Tasks>)ViewData["Tasks"])
            {%>
                <tr>
                <td>
                    <%/*=Html.ActionLink("Open", "Task", new { id = t.TaskID })*/%>
                </td>
                    <td>
                        <%=t.Title %>
                    </td>
                    <td>
                        <%=t.CreatedOn.ToLongDateString() %>
                    </td>
                </tr>
           <% } %>

    </table>

</asp:Content>
